package com.base.api.dto.selfOrder;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "订单查询请求参数")
public class SelfOrderSearchDTO implements Serializable {

    @NotNull
    @ApiModelProperty(value="页码", example = "1")
    private Integer offset;

    @NotNull
    @ApiModelProperty(value="页码大小",example = "4")
    private Integer limit;

    @ApiModelProperty(value = "0.全部 1.待支付 2.待发货 3.待收货 4.待晒单 5.已取消 6.待拼团")
    @Range(min = 0, max = 6,message = "只能为0到6")
    private Integer status;

    @ApiModelProperty(value = "用户id")
    @NotBlank(message = "用户id不能为空")
    private String userId;
}
